home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Monster Media 1996 #15
/
Monster Media Number 15 (Monster Media)(July 1996).ISO
/
prog_c
/
cuj0696.zip
/
DWYER.ZIP
/
SPECTRAL.TST
/
TSTEPOW.CX
< prev
next >
Wrap
Text File
|
1996-03-09
|
793b
|
34 lines
/* ============ */
/* tstepow.c */
/* ============ */
#include <xtendefs.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
/* ==================================================================== */
/* */
/* ==================================================================== */
void
main()
{
USHORT Answer[NE], Base[NE], Exponent[NE];
ASCTOX("-3.0", Base);
XPRINTF("Base = ", Base, 0);
ASCTOX("3.0", Base);
XPRINTF("Base = ", Base, 0);
ASCTOX("2.49", Exponent);
XPRINTF("Exponent = ", Exponent, NDEC);
XPOW(Base, Exponent, Answer);
XPRINTF("3^2.49 = ", Answer, NDEC);
ASCTOX("2.5", Exponent);
XPRINTF("Exponent = ", Exponent, NDEC);
XPOW(ETWO, Exponent, Answer);
XPRINTF("2^2.5 = ", Answer, NDEC);
}